V = Variables
R = Reading fnctions
SIGNED BYTE —→ BINARY
The VR10SbyToBin function converts a Signed Bytes variable type (byte with sign) in a Binary variable type.
VR10SByToBin (value, index, array, errcode)
Parameters:
| IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | GLOBAL | value | B | Data value to convert |
| IN | GLOBAL | index | L | Index of the array element to start the “deposit” of the converted data |
| OUT | ARRGBL | array | B | Array containing the converted data (must be declared at least “index” elements) |
| OUT | GLOBAL | errcode | F | Variable that indicates a possible error on the function |
After calling the function, 'errcode' can take certain values, the meaning of these values is summarized below:
0: No error
Trasforma il valore 12 (signed byte) in un valore binario
value = -12 index = 1 VR10SByToBin (value, index, array, errcode) ;Sull'array si troverà : ; array[1] = -12